<?php
/*
	首页
*/
//cfc('core')->checklogin();
defined('BY_JYA') or exit('error');
$_RQ['op']=$_RQ['op']?$_RQ['op']:'main';
set_html('header','common/header-cms');
if($_RQ['op']=='main'){
	$return['list']=array();
	$set=$this->plugin_setting('basic');
	$return['banner']=$set['lunbomenu'];
	$return['ad_menu']=$set['advmenu'];
	$return['picture_menu']=$set['imagemenu'];
	$return['headmenu_menu']=$set['headmenumenu'];
	$pindex = max(1, intval($_RQ['page']));
	$psize = 10;
	$params=array('uniacid'=>$_SESSION['uniacid']);
	$orderby='paixu desc';
	$total='';
	$return['hot']=pdo_getslice('jy_jdk_goods',array('uniacid'=>$_SESSION['uniacid'],'ishot'=>1),array($pindex,$psize),$total,$fields,'',$orderby);
	$return['new']=pdo_getslice('jy_jdk_goods',array('uniacid'=>$_SESSION['uniacid'],'isnew'=>1),array($pindex,$psize),$total,$fields,'',$orderby);
	set_html('title',$setting['title']?'首页-'.$setting['title']:'首页-京东客');
	exi($return);
}

	
?>